<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/5/25
  Time: 12:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>show</title>
</head>
<body>

<form>
    <table>
        <tr>监测区域: <select name="district">
            <c:forEach var="d" items="${directList}">
                <option value="${d.id}" <c:if test="${d.id == air.districtId}"> selected </c:if> ${d.name} </option>
            </c:forEach>
        </select> </tr>
        <tr>监测日期: <input type="text" value="${air.monitorTime}" /></tr>
        <tr>PM10值: <input type="text" value="${air.pm10}" /></tr>
        <tr>PM2.5值: <input type="text" value="${air.pm25}" /></tr>
        <tr>监测站: <input type="text" value="${air.monitoringStation}" /></tr>
    </table>
    <input type="submit" href="../test/update&id=" + ${air.id} value="更新"/>
    <input type="submit" href="../test/delete&id=" + ${air.id} value="删除"/>
    <input type="submit" href="../test/findAll" value="返回"/>

</form>

</body>
</html>
